package com.xudow.app.ui.widget;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * TextView for title bar.
 *
 * @author lukecheng
 */
public class TitleBarTextView extends TextView {

    public TitleBarTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init(attrs);
    }

    public TitleBarTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs);
    }

    public TitleBarTextView(Context context) {
        super(context);
        init(null);
    }

    private void init(AttributeSet attrs) {
        if (attrs != null) {
            //Typeface myTypeface = Typeface.createFromAsset(getContext().getAssets(), "fonts/hksn.ttf");
            //setTypeface(myTypeface);
        }
    }

}
